
let {request_3031,request_3001} = require('../../utils/https.js')


module.exports = {
  // 手机号一键登录
  setPhoneLogin(data){
    return request_3001({
      url:'/newPages/phoneLogin',
      method:"POST",
      data
    })
  },
  // 当前手机号是否已注册
  getIsPhoneLogin(data){
    return request_3001({
      url:'/newPages/isPhoneLogin',
      method:"POST",
      data
    })
  },
  // 获取房源列表
  getHouseList : (data) => {
    return request_3001({
      url: '/newPages/houseList',
      method: "POST",
      data
    })
  },
  // 获取推荐园区
  getRecommendList : (id,pageNumber) => {
    return request_3001({
      url: `/newPages/recommendList?id=${id}&pageSize=${2}&pageNumber=${pageNumber}`,
      method: "GET",
    })
  },
  // 搜索推荐园区
  getRecommendSearch : (data) => {
    return request_3001({
      url: `/newPages/recommendList/search`,
      method: "POST",
      data
    })
  },
  // 获取房源载体
  getRoomSearch : () => {
    return request_3001({
      url: `/newPages/roomSearch`,
      method: "GET",
    })
  },
  // 房源搜索
  getHouseListSearch : (data) => {
    return request_3001({
      url: `/newPages/houseListSearch`,
      method: "POST",
      data
    })
  },
  // 优惠/推荐好房
  getHouseListAppoint : (fjlx,xmgs) => {
    return request_3001({
      url: `/newPages/houseList/appoint?fjlx=${fjlx}&xmgs=${xmgs}`,
      method: "GET",
    })
  },
  // 更多房源
  getHouseMore : (data) => {
    return request_3001({
      url: `/newPages/houseMore`,
      method: "POST",
      data
    })
  },
}